
<?php 
if (!empty($numall)) echo "<div style=\"float:right;\">".pagenav_cc($numall, $page, $Url, $NumPerPage)."</div>";
?>

<h1>Новости</h1><br/><br/>
<div id="list"  class="thumbnails" style="">
<?php
if (!empty($NewsData)) {
$catname[0]="";
$i=1;
$num=count($NewsData);
foreach ($NewsData as $News) {
if (!empty($News['uname'])) $NewURL=$News['uname'];
else $NewURL=$News['ID'];
?>
   <ins class="thumbnail" id="new">
	<div class="r">
		<div class="newsc">
			
			<div class="date"><?php echo(date("j", $News['newdate']))?><br/><span class="mounth"><?php
		
	 			$mounth=getmounth($News['newdate']);
	 			echo $mounth;
	 
	 		?></span></div>
		
			<div class="title"><a href="/news/<?=$NewURL?>.html"><?=$News['title']?></a></div>
			
		</div>
		<div class="clearfix"></div>
	</div>

	
	</ins>

<?
$i++;
}//foreach
?>
<br/><br/>
<?
if (!empty($numall)) echo pagenav_cc($numall, $page, $Url, $NumPerPage);

}//if
else echo "Новостей нет или произошла ошибка.";

?>
</div>
